package com.yh.patterns.state.after;

/**
 * @Author:云尚
 * @Description:
 */
public class Client {
    public static void main(String[] args) {
        //创建环境角色对象
        Context context=new Context();
        //设置当前电梯状态
        context.setLiftState(new ClosingState());

        //操作
        context.open();
        context.close();
        context.run();
        context.stop();
    }
}
